<?php


namespace app\api\library\withdraw\delete;


use think\facade\Db;

class V
{
    public static function run($param)
    {
        
        $userId = _checkEmptyParam($param[ 'userId' ], '用户ID不能为空');
        $id     = _checkEmptyParam($param[ 'id' ], '地址ID不能为空');
        if (false === Db::name('mall_withdraw_info')->where('id', $id)->update(['delete_time' => time()])) {
            _outPut(204, '', '删除失败');
        }
        _outPut(200, '', '删除成功');
    }
}